package com.xiake.consultsystem.service.impl;

import com.xiake.consultsystem.pojo.po.Student;
import com.xiake.consultsystem.mapper.StudentMapper;
import com.xiake.consultsystem.service.StudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiake.consultsystem.pojo.vo.RecordVo;
import com.xiake.consultsystem.pojo.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mr.Chen
 * @since 2022-11-13
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

    @Autowired
    StudentMapper studentMapper;
    @Override
    public Result getRecordByStudentId(Long studentId) {
        List<RecordVo>list =  studentMapper.getRecordByStudentId(studentId);
        return Result.success(list);
    }
}
